<template>
  <div class="container">
    <div>
      {{pageData}}
    </div>
  </div>
</template>

<script>
import Logo from '~/components/Logo.vue'
import {articleSelectpage} from '@/api/article'

export default {
  data(){
    return {
      pageData:""
    }
  },
  components: {
    Logo
  },
  // asyncData ({ params }, callback) {
  //     articleSelectpage({page:1,size:20}).then(data=>{
  //       callback(null, { pageData: JSON.stringify(data) })
  //     });
  // }
  created(){
    this.getList()
  },
  methods:{
    getList(){
      articleSelectpage({page:1,size:20}).then(data=>{
        console.log(data);
      });
    }
  }
}
</script>

<style>
.container {
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
</style>
